
function showToast(text, icon, time) {
    wx.showToast({
        title: text,
        icon: icon || 'none',
        duration: time || 1000
    })
}
function jump(uri, type) {
    let status = type || 1;
    switch (status) {
        case 1:
            wx.navigateTo({
                url: uri
            })
            break;
        case 2:
            wx.reLaunch({
                url: uri
            })
            break;
        case 3:
            wx.switchTab({
                url: url
            })
            break;
        default:
            break;
    }

}
//
export default {
    showToast,
    jump
}
